package com.rn.gypsophila.grpc;

import net.devh.boot.grpc.server.interceptor.GlobalServerInterceptorConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GlobalInterceptorConfiguration {

	@Bean
	public GlobalServerInterceptorConfigurer globalInterceptorConfigurerAdapter() {
		return registry -> registry.addServerInterceptors(new LogGrpcInterceptor());
	}

}
